package graph.element;
import graph.GraphPanel;

import java.awt.Graphics;


public abstract class element {
	public int x;
	public int y;
	public static int SPACE = 5;
	public static int PAD = 20;
	public GraphPanel graphingData;
	public Graphics g;
	
	public Graphics getG() {
		return g;
	}
	public element(GraphPanel graphingData) {
		this.graphingData = graphingData;
		this.g = graphingData.getG();
	}
	public element(GraphPanel graphingData2, int x, int y) {
		this.graphingData = graphingData2;
		this.x = x;
		this.y = y;
	}
	public int getX() {
		return x;
	}
	public int getY() {
		return y;
	}
	public void setX(int x) {
		this.x = x;
	}
	public void setY(int y) {
		this.y = y;
	}
	public abstract void draw();
}
